package com.chenwut.BigIntegarDemo;

import java.math.BigInteger;
import java.util.Random;

public class BigIntegarDemo {
    public static void main(String[] args) {
        Random r = new Random();
       BigInteger bigInteger = new BigInteger(3, r);
       /*BigInteger(int numBits, Random rnd)
       构造一个随机生成的 BigInteger，它是在 0 到 (2^numBit - 1)（包括）范围内均匀分布的值。*/
        System.out.println(bigInteger);
        BigInteger bigInteger1 = new BigInteger("18988888");
        System.out.println(bigInteger1);

    }
}
